// Static i18n stub using aggregated Chinese messages
// Provides a minimal { t } compatible with existing usage
import zhCN from '@/locales/zh-CN'

type Messages = Record<string, string>

const messages: Messages = { ...zhCN }

export function useI18n() {
  function t(key: string, _params?: any): string {
    return messages[key] ?? key
  }

  return { t }
}